// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
+const Atk = imports.gi.Atk;
const Clutter = imports.gi.Clutter;
const GLib = imports.gi.GLib;
const GObject = imports.gi.GObject;
const Meta = imports.gi.Meta;
const Pango = imports.gi.Pango;
const Shell = imports.gi.Shell;
-const St = imports.gi.St;
-const Atk = imports.gi.Atk;
-
const Signals = imports.signals;
+const St = imports.gi.St;
const DND = imports.ui.dnd;
const Main = imports.ui.main;
this.actor.layout_manager.boundingBox = rect;
}
- // Find the actor just below us, respecting reparenting done
- // by DND code
+ // Find the actor just below us, respecting reparenting done by DND code
getActualStackAbove() {
if (this._stackAbove == null)
return null;
this._windows = [];
this._windowOverlays = [];
for (let i = 0; i < windows.length; i++) {
- if (this._isOverviewWindow(windows[i])) {
+ if (this._isOverviewWindow(windows[i]))
this._addWindowClone(windows[i], true);
- }
}
// Track window changes
// We might have the window in our list already if it was on all workspaces and
// now was moved to this workspace
- if (this._lookupIndex (metaWin) != -1)
+ if (this._lookupIndex(metaWin) != -1)
return;
if (!this._isMyWindow(win))
clone.slot = [x, y, clone.actor.width * scale, clone.actor.height * scale];
clone.positioned = true;
- clone.actor.set_position (x, y);
- clone.actor.set_scale (scale, scale);
+
+ clone.actor.set_position(x, y);
+ clone.actor.set_scale(scale, scale);
clone.overlay.relayout(false);
}
_removeWindowClone(metaWin) {
// find the position of the window in our list
- let index = this._lookupIndex (metaWin);
+ let index = this._lookupIndex(metaWin);
if (index == -1)
return null;
// We might have the window in our list already if it was on all workspaces and
// now was moved to this workspace
- if (this._lookupIndex (metaWin) != -1)
+ if (this._lookupIndex(metaWin) != -1)
return;
if (!this._isMyWindow(win))
while (parent.is_attached_dialog())
parent = parent.get_transient_for();
- let idx = this._lookupIndex (parent);
+ let idx = this._lookupIndex(parent);
if (idx < 0) {
// parent was not created yet, it will take care
// of the dialog when created
_removeWindowClone(metaWin) {
// find the position of the window in our list
- let index = this._lookupIndex (metaWin);
+ let index = this._lookupIndex(metaWin);
if (index == -1)
return null;